import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/screenutil.dart';

class Peisongfei extends StatefulWidget{
  final String title;
  Peisongfei({Key key,this.title}) : super(key: key);

  @override
  _Peisongfei createState() => _Peisongfei();
}

class _Peisongfei extends State<Peisongfei>{

  int xiabiao=0;        //选中下标

  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context , width: 464 , height: 820) ;
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        automaticallyImplyLeading: false,
        // backgroundColor: Colors.white,
        title: Text("配送费用",style: TextStyle(color: Colors.black),),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Expanded(child: Column(children: [
            Row(
              children: [
                Text("基础配送费"),
                SizedBox(width: 10,),
                Expanded(child: TextFormField(
                  keyboardType: TextInputType.number,
                  decoration: InputDecoration(
                      hintText: "5",
                  ),
                )
                )
              ],
            ),
            Row(
              children: [
                Text("免配送费"),
                SizedBox(width: 10,),
                Expanded(child: TextFormField(
                  keyboardType: TextInputType.number,
                  decoration: InputDecoration(
                      hintText: "订单价格高于此价则免配送费"
                  ),
                )
                )
              ],
            ),
          ],)
          ),

          Row(
            children: [
              Expanded(child: GestureDetector(
                child: Container(
                  padding: EdgeInsets.symmetric(vertical: 10),
                  color: Colors.red,
                  child: Center(
                    child: Text("保存",style: TextStyle(color: Colors.white),),
                  ),
                ),
              ))
            ],
          )
        ],
      ),
    );
  }

}